package com.culture.config.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@ComponentScan(basePackages={"com.culture.config"})
@MapperScan(basePackages={"com.culture.config.dao"})
@EnableWebMvc
@EnableScheduling
public class ConfigApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {		
		SpringApplication.run(ConfigApplication.class, args);
	}
	
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {	
        return application.sources(ConfigApplication.class);
    }

}
 